package com.future.dao;

import java.sql.Connection;
import java.util.List;

import com.future.model.po.ShareDepartmentModel;

public class ShareDepartmentDAO extends BaseDAO<ShareDepartmentModel> {

	public ShareDepartmentDAO() {

	}

	public ShareDepartmentDAO(Connection conn) {
		super(conn);
	}

	public boolean saveShareDepartment(ShareDepartmentModel model) {
		String sql = "insert into sharedepartment (department) values (?)";
		return this.update(sql, model.getDepartment());
	}

	public List<ShareDepartmentModel> findAll() {
		String sql = "select * from sharedepartment";
		return this.searchAsBeanList(sql, ShareDepartmentModel.class);
	}
	
	
}
